Make gtk_init_check work as expected
authorMatthias Clasen <mclasen@redhat.com>
Sat, 23 Mar 2013 23:41:39 +0000 (19:41 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 23 Mar 2013 23:41:39 +0000 (19:41 -0400)
commit65cd2a59c3c8e46e6baa7a6f0cb73dae22f2fd37
tree6b24ec45be3be1c9fcc2e26fec28e124c6c9fccd
parent48d8af85d08b8937f4105535d88302c7a20909aa
Make gtk_init_check work as expected

When no GDK backend can be initialized (either because
GDK_BACKEND has been set to the wrong value, or the backends
are simply not included), the expectation is that gtk_init_check
should return FALSE, not error out.
This commit makes it so, by using gdk_display_manager_peek
instead of gdk_display_manager_get in code paths that are used
during initialization.
gtk/gtkmodules.c